import { UserRole } from '@app/db/models/user.model';
import { SetMetadata } from '@nestjs/common';

// 用来指定路由的角色权限
export const ROLES_KEY = 'user-roles';
export const Roles = (...roles: UserRole[]) => SetMetadata(ROLES_KEY, roles);
